<%
            String username = request.getParameter("username");
            String password = request.getParameter("password");
           out.println("Checking login<br>");
            if (username == null || password == null) {
 
                out.print("Invalid paramters ");
            }
 
            // Here you put the check on the username and password
            if (username.toLowerCase().trim().equals("admin") && password.toLowerCase().trim().equals("admin")) {
                //out.println("Welcome " + username + " <a href=\"index.jsp\">Back to main</a>");
                //session.setAttribute("username", username);
                
            	//response.sendRedirect("http://devopenerp.brice-newton.fr/web/webclient/home?test=88");
        		//RequestDispatcher dispat = request.getRequestDispatcher("http://devopenerp.brice-newton.fr/web/webclient/home"); 
        		//dispat.forward(request,response); 
        		
        	    //ServletContext app = getServletContext();
        	    //RequestDispatcher disp;
        	    //disp = app.getRequestDispatcher("http://devopenerp.brice-newton.fr/web/webclient/home");
        	    //disp.forward(request,response); 
        	   response.sendRedirect("http://devopenerp.brice-newton.fr/web/webclient/home?test=88");
            }
           else 
               {
                out.println("Invalid username and password");
           }
 
%> 